/**
 * 
 */
package br.com.agendafree.model.entity;

/**
 * @author Nane
 *
 */
	public class Cliente {

		private long id;
		private String nome;
		private String rg;
		private String cpf;
		private String telefone;
		private String celular;
		private String email;
		private String observacao;
		
		private Endereco endereco;

		public Cliente(long id, String nome, String rg, String cpf,
				String telefone, String celular, String email, String observacao) {
			super();
			this.id = id;
			this.nome = nome;
			this.rg = rg;
			this.cpf = cpf;
			this.telefone = telefone;
			this.celular = celular;
			this.email = email;
			this.observacao = observacao;
		}

		@Override
		public int hashCode() {
			final int prime = 31;
			int result = 1;
			result = prime * result
					+ ((celular == null) ? 0 : celular.hashCode());
			result = prime * result + ((cpf == null) ? 0 : cpf.hashCode());
			result = prime * result + ((email == null) ? 0 : email.hashCode());
			result = prime * result + (int) (id ^ (id >>> 32));
			result = prime * result + ((nome == null) ? 0 : nome.hashCode());
			result = prime * result
					+ ((observacao == null) ? 0 : observacao.hashCode());
			result = prime * result + ((rg == null) ? 0 : rg.hashCode());
			result = prime * result
					+ ((telefone == null) ? 0 : telefone.hashCode());
			return result;
		}

		@Override
		public boolean equals(Object obj) {
			if (this == obj)
				return true;
			if (obj == null)
				return false;
			if (getClass() != obj.getClass())
				return false;
			Cliente other = (Cliente) obj;
			if (celular == null) {
				if (other.celular != null)
					return false;
			} else if (!celular.equals(other.celular))
				return false;
			if (cpf == null) {
				if (other.cpf != null)
					return false;
			} else if (!cpf.equals(other.cpf))
				return false;
			if (email == null) {
				if (other.email != null)
					return false;
			} else if (!email.equals(other.email))
				return false;
			if (id != other.id)
				return false;
			if (nome == null) {
				if (other.nome != null)
					return false;
			} else if (!nome.equals(other.nome))
				return false;
			if (observacao == null) {
				if (other.observacao != null)
					return false;
			} else if (!observacao.equals(other.observacao))
				return false;
			if (rg == null) {
				if (other.rg != null)
					return false;
			} else if (!rg.equals(other.rg))
				return false;
			if (telefone == null) {
				if (other.telefone != null)
					return false;
			} else if (!telefone.equals(other.telefone))
				return false;
			return true;
		}

		@Override
		public String toString() {
			StringBuilder builder = new StringBuilder();
			builder.append("Cliente [id=")
					.append(id)
					.append(", nome=")
					.append(nome)
					.append(", rg=")
					.append(rg)
					.append(", cpf=")
					.append(cpf)
					.append(", telefone=")
					.append(telefone)
					.append(", celular=")
					.append(celular)
					.append(", email=")
					.append(email)
					.append(", observacao=")
					.append(observacao)
					.append("]");
			return builder.toString();
		}

		public long getId() {
			return id;
		}

		public void setId(long id) {
			this.id = id;
		}

		public String getNome() {
			return nome;
		}

		public void setNome(String nome) {
			this.nome = nome;
		}

		public String getRg() {
			return rg;
		}

		public void setRg(String rg) {
			this.rg = rg;
		}

		public String getCpf() {
			return cpf;
		}

		public void setCpf(String cpf) {
			this.cpf = cpf;
		}

		public String getTelefone() {
			return telefone;
		}

		public void setTelefone(String telefone) {
			this.telefone = telefone;
		}

		public String getCelular() {
			return celular;
		}

		public void setCelular(String celular) {
			this.celular = celular;
		}

		public String getEmail() {
			return email;
		}

		public void setEmail(String email) {
			this.email = email;
		}

		public String getObservacao() {
			return observacao;
		}

		public void setObservacao(String observacao) {
			this.observacao = observacao;
		}

		public Endereco getEndereco() {
			return endereco;
		}

		public void setEndereco(Endereco endereco) {
			this.endereco = endereco;
		}

}
